package com.atstudy.math;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/21 16:10
 * @copyright: 博为峰
 */
public class MathDemo {
    public static void main(String[] args) {
        System.out.println(Math.PI);
        System.out.println(Math.pow(3, 2));//幂次
        System.out.println(Math.round(3.16));//四舍五入
        System.out.println(Math.random());//随机数（0~1）
        System.out.println(Math.ceil(3.14));//向上取整
        System.out.println(Math.floor(3.14));//向下取整
    }
}
